home *** CD-ROM | disk | FTP | other *** search
- Path: orion.hrz.tu-freiberg.de!wirbel
- From: wirbel@orion.hrz.tu-freiberg.de (Frank Wirbeleit)
- Newsgroups: comp.lang.c++
- Subject: Re: Arrays in C and c++
- Date: 11 Apr 1996 13:52:12 GMT
- Organization: BA Freiberg
- Distribution: world
- Message-ID: <4kj2qc$fem@kermes.hrz.tu-freiberg.de>
- References: <4kc929$38k@hermes.acs.unt.edu> <316b3f0c.33230328@news.synapse.net>
- NNTP-Posting-Host: orion.hrz.tu-freiberg.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Hi,
-
- I have created a c++ lib for arrays, please try:
-
- ftp : schuetz.exphys.tu-freiberg.de/pub/matrix/matrix_Lib
-
- a packed file matrix.exe useful for microsoft and borland compiler
- is ther located.
-
- Frank
-
- wirbel@physik.tu-freiberg.de
-
- Phil Lachance (phill@synapse.net) wrote:
- : On 8 Apr 1996 23:55:53 GMT, jnr0001@jove.acs.unt.edu (Joseph Neal
- : Rake) wrote:
-
- : >Is it possible to do 2 dimensional arrays in C or C++? If so, how?
- : >
- : You declare 2 or more dimensional arrays like:
- : int temp[10][20];
- : is a 10 by 20 array of int
-
- : you access the elements in the regular way.
-
-
- : >This is probably a related question: How does one do an array of strings
- : >in C or C++, since 1 string is already an array?
- : >
- : You declare it more or less the same way:
- : char temp[10][20];
- : where 10 is the number of strings and 20 is the length of the string.
-
-
- : _________________________________
- : Phil Lachance <phill@synapse.net>
-